package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.RescueRecord;
import com.example.service.RescueRecordService;
import com.example.mapper.RescueRecordMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author cys
* @description 针对表【rescue_record(整合救援请求与救援行动的完整记录表)】的数据库操作Service实现
* @createDate 2025-03-16 17:39:33
*/
@Service
public class RescueRecordServiceImpl extends ServiceImpl<RescueRecordMapper, RescueRecord>
    implements RescueRecordService{
    @Resource
    private RescueRecordMapper rescueRecordMapper;
    @Override
    public PageInfo<RescueRecord> selectPage(RescueRecord rescueRecord, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<RescueRecord> list = rescueRecordMapper.selectList(null);
        return PageInfo.of(list);
    }
}




